package com.gitee.huanminabc.utils_tools.security.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gitee.huanminabc.utils_tools.security.enums.EducationEnum;
import com.gitee.huanminabc.utils_tools.security.enums.SexEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author huanmin
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "UserPersonVo",description = "")
public class UserPersonVo implements Serializable{
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键",required = true)
	private Long id;

	@ApiModelProperty(value = "用户名",required = true)
	private String account;

	@ApiModelProperty(value = "昵称",required = false)
	private String nickName;


	@ApiModelProperty(value = "邮箱",required = false)
	@TableField( "email")
	private String email;

	@ApiModelProperty(value = "手机号",required = false)
	private String phoneNumber;

	@ApiModelProperty(value = "用户性别（0男，1女，2未知）",required = true)
	private SexEnum sex;



	@ApiModelProperty(value = "更新时间",required = true)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;


	@ApiModelProperty(value = "余额",required = true)
	private BigDecimal balance;

	@ApiModelProperty(value = "最高学历: -1未知,0博士,1研究生,2本科,3大专,4高中",required = true)
	private EducationEnum education;

	@ApiModelProperty(value = "开始工作时间",required = false)
	private Date startWordTIme;

	@ApiModelProperty(value = "出生日期",required = false)
	private Date birthdate;

	@ApiModelProperty(value = "所在地区",required = false)
	private String location;


	@ApiModelProperty(value = "个人简介",required = false)
	private String desc;




}
